package cn.yto.wdgj.wdgjgptdigitaltool.mapper.gpt;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface CaseImportMapper {
    @Insert("INSERT INTO gpt_case_maintenance(intent_name, tag, matcher_content, create_time, update_time) " +
            "VALUES(#{intentName}, #{tag}, #{matcherContent}, NOW(), NOW())")
    int insertCase(@Param("intentName") String intentName,
                   @Param("tag") String tag,
                   @Param("matcherContent") String matcherContent);
}

